import axios from '@/libs/api.request'
/**
 * 海运舱单列表
 * @param {String} email 邮箱
 * @param {String} password 密码
 * @param {Number} tel 手机号
 * @param {String} userName 用户名
 * @param {Number} validCode 手机验证码
 */
export function getList (data) {
    return axios.request({
        url: '/customs/manifest/list',
        data: data,
        method: 'post'
    })
}
export function getData (params) {
    return axios.request({
        url: '/customs/manifest/queryDataByContainerNo',
        params,
        method: 'get'
    })
}
export function getCompanyList (params) {
    return axios.request({
        url: '/customs/logistics/list',
        params,
        method: 'get'
    })
}
export function queryConsignee (params) {
    return axios.request({
        url: '/customs/manifest/queryConsignee',
        params,
        method: 'get'
    })
}
export function getSea (params) {
    return axios.request({
        url: '/customs/manifest/queryManifestById',
        params,
        method: 'get'
    })
}
export function saveSea (data) {
    return axios.request({
        url: '/customs/manifest/unifySaveManifest',
        data,
        method: 'post'
    })
}
export function deleteSea (manifestId) {
    return axios.request({
        url: '/customs/manifest/delete',
        params: {
            manifestId
        },
        method: 'post'
    })
}
// 获取船期
export function getVessel (data) {
    return axios.request({
        url: '/customs/manifest/vesselList',
        data,
        method: 'post'
    })
}
// 获取船期
export function getNoticeType (data) {
    return axios.request({
        url: '/customs/manifestBasicData/list',
        data,
        method: 'post'
    })
}
// 获取收发货人
export function getOperatorList (data) {
    return axios.request({
        url: '/customs/manifestOperator/list',
        data,
        method: 'post'
    })
}
// 箱动态
export function getConT (params) {
    return axios.request({
        url: '/customs/manifest/find/container',
        params,
        method: 'get'
    })
}
// 申报url

export function sendSea (url) {
    return axios.request({
        url: url,
        data: {},
        method: 'post'
    })
}
// 回执data
export function recordSea (data) {
    return axios.request({
        url: '/customs/manifestReceipt/queryResponseRecords',
        data: data,
        method: 'post'
    })
}
